package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="THR_UserEntryApply", catalog="Id")
public class ThrUserEntryApply extends BaseEntity<ThrUserEntryApply> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="UserSex", nameJava="userSex", typeDataBase="tinyint")
	private Integer userSex;
	@YsField(nameDataBase="Birthday", nameJava="birthday", typeDataBase="char")
	private String birthday;
	@YsField(nameDataBase="NativePlace", nameJava="nativePlace", typeDataBase="varchar")
	private String nativePlace;
	@YsField(nameDataBase="Education", nameJava="education", typeDataBase="tinyint")
	private Integer education;
	@YsField(nameDataBase="GraduationDate", nameJava="graduationDate", typeDataBase="char")
	private String graduationDate;
	@YsField(nameDataBase="GraduationSchool", nameJava="graduationSchool", typeDataBase="varchar")
	private String graduationSchool;
	@YsField(nameDataBase="Major", nameJava="major", typeDataBase="varchar")
	private String major;
	@YsField(nameDataBase="Telephone", nameJava="telephone", typeDataBase="varchar")
	private String telephone;
	@YsField(nameDataBase="Address", nameJava="address", typeDataBase="varchar")
	private String address;
	@YsField(nameDataBase="WorkCity", nameJava="workCity", typeDataBase="varchar")
	private String workCity;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="RoleIdAttribute", nameJava="roleIdAttribute", typeDataBase="tinyint")
	private Integer roleIdAttribute;
	@YsField(nameDataBase="DeptId", nameJava="deptId", typeDataBase="varchar")
	private String deptId;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="BelongCompany", nameJava="belongCompany", typeDataBase="varchar")
	private String belongCompany;
	@YsField(nameDataBase="UserState", nameJava="userState", typeDataBase="tinyint")
	private Integer userState;
	@YsField(nameDataBase="EntryDate", nameJava="entryDate", typeDataBase="varchar")
	private String entryDate;
	@YsField(nameDataBase="FormalDate", nameJava="formalDate", typeDataBase="varchar")
	private String formalDate;
	@YsField(nameDataBase="GraduationCertificate", nameJava="graduationCertificate", typeDataBase="varchar")
	private String graduationCertificate;
	@YsField(nameDataBase="EducationCertificate", nameJava="educationCertificate", typeDataBase="varchar")
	private String educationCertificate;
	@YsField(nameDataBase="LaborContract", nameJava="laborContract", typeDataBase="varchar")
	private String laborContract;
	@YsField(nameDataBase="OtherFile", nameJava="otherFile", typeDataBase="varchar")
	private String otherFile;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="OfficeId", nameJava="officeId", typeDataBase="bigint")
	private Long officeId;
	@YsField(nameDataBase="IdCard", nameJava="idCard", typeDataBase="varchar")
	private String idCard;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ThrUserEntryApply setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public ThrUserEntryApply setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public ThrUserEntryApply setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public ThrUserEntryApply setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public ThrUserEntryApply setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public ThrUserEntryApply setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public Integer getUserSex() {
		return userSex;
	}
	public ThrUserEntryApply setUserSex(Integer userSex) {
		this.userSex = userSex;
		return this;
	}
	public String getBirthday() {
		return birthday;
	}
	public ThrUserEntryApply setBirthday(String birthday) {
		this.birthday = birthday;
		return this;
	}
	public String getNativePlace() {
		return nativePlace;
	}
	public ThrUserEntryApply setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
		return this;
	}
	public Integer getEducation() {
		return education;
	}
	public ThrUserEntryApply setEducation(Integer education) {
		this.education = education;
		return this;
	}
	public String getGraduationDate() {
		return graduationDate;
	}
	public ThrUserEntryApply setGraduationDate(String graduationDate) {
		this.graduationDate = graduationDate;
		return this;
	}
	public String getGraduationSchool() {
		return graduationSchool;
	}
	public ThrUserEntryApply setGraduationSchool(String graduationSchool) {
		this.graduationSchool = graduationSchool;
		return this;
	}
	public String getMajor() {
		return major;
	}
	public ThrUserEntryApply setMajor(String major) {
		this.major = major;
		return this;
	}
	public String getTelephone() {
		return telephone;
	}
	public ThrUserEntryApply setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}
	public String getAddress() {
		return address;
	}
	public ThrUserEntryApply setAddress(String address) {
		this.address = address;
		return this;
	}
	public String getWorkCity() {
		return workCity;
	}
	public ThrUserEntryApply setWorkCity(String workCity) {
		this.workCity = workCity;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public ThrUserEntryApply setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Integer getRoleIdAttribute() {
		return roleIdAttribute;
	}
	public ThrUserEntryApply setRoleIdAttribute(Integer roleIdAttribute) {
		this.roleIdAttribute = roleIdAttribute;
		return this;
	}
	public String getDeptId() {
		return deptId;
	}
	public ThrUserEntryApply setDeptId(String deptId) {
		this.deptId = deptId;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public ThrUserEntryApply setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public String getBelongCompany() {
		return belongCompany;
	}
	public ThrUserEntryApply setBelongCompany(String belongCompany) {
		this.belongCompany = belongCompany;
		return this;
	}
	public Integer getUserState() {
		return userState;
	}
	public ThrUserEntryApply setUserState(Integer userState) {
		this.userState = userState;
		return this;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public ThrUserEntryApply setEntryDate(String entryDate) {
		this.entryDate = entryDate;
		return this;
	}
	public String getFormalDate() {
		return formalDate;
	}
	public ThrUserEntryApply setFormalDate(String formalDate) {
		this.formalDate = formalDate;
		return this;
	}
	public String getGraduationCertificate() {
		return graduationCertificate;
	}
	public ThrUserEntryApply setGraduationCertificate(String graduationCertificate) {
		this.graduationCertificate = graduationCertificate;
		return this;
	}
	public String getEducationCertificate() {
		return educationCertificate;
	}
	public ThrUserEntryApply setEducationCertificate(String educationCertificate) {
		this.educationCertificate = educationCertificate;
		return this;
	}
	public String getLaborContract() {
		return laborContract;
	}
	public ThrUserEntryApply setLaborContract(String laborContract) {
		this.laborContract = laborContract;
		return this;
	}
	public String getOtherFile() {
		return otherFile;
	}
	public ThrUserEntryApply setOtherFile(String otherFile) {
		this.otherFile = otherFile;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public ThrUserEntryApply setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Long getOfficeId() {
		return officeId;
	}
	public ThrUserEntryApply setOfficeId(Long officeId) {
		this.officeId = officeId;
		return this;
	}
	public String getIdCard() {
		return idCard;
	}
	public ThrUserEntryApply setIdCard(String idCard) {
		this.idCard = idCard;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ThrUserEntryApply setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ThrUserEntryApply setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ThrUserEntryApply setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ThrUserEntryApply thrUserEntryApply(
		String bid,
		Long createChangeId,
		Integer effectStock,
		String userId,
		String userName,
		Integer userSex,
		String birthday,
		String nativePlace,
		Integer education,
		String graduationDate,
		String graduationSchool,
		String major,
		String telephone,
		String address,
		String workCity,
		Long roleId,
		Integer roleIdAttribute,
		String deptId,
		String headUserId,
		String belongCompany,
		Integer userState,
		String entryDate,
		String formalDate,
		String graduationCertificate,
		String educationCertificate,
		String laborContract,
		String otherFile,
		String remark,
		Long officeId,
		String idCard,
		Integer status
			) {
		ThrUserEntryApply entity = new ThrUserEntryApply();
		entity.setBid(bid);
		entity.setCreateChangeId(createChangeId);
		entity.setEffectStock(effectStock);
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setUserSex(userSex);
		entity.setBirthday(birthday);
		entity.setNativePlace(nativePlace);
		entity.setEducation(education);
		entity.setGraduationDate(graduationDate);
		entity.setGraduationSchool(graduationSchool);
		entity.setMajor(major);
		entity.setTelephone(telephone);
		entity.setAddress(address);
		entity.setWorkCity(workCity);
		entity.setRoleId(roleId);
		entity.setRoleIdAttribute(roleIdAttribute);
		entity.setDeptId(deptId);
		entity.setHeadUserId(headUserId);
		entity.setBelongCompany(belongCompany);
		entity.setUserState(userState);
		entity.setEntryDate(entryDate);
		entity.setFormalDate(formalDate);
		entity.setGraduationCertificate(graduationCertificate);
		entity.setEducationCertificate(educationCertificate);
		entity.setLaborContract(laborContract);
		entity.setOtherFile(otherFile);
		entity.setRemark(remark);
		entity.setOfficeId(officeId);
		entity.setIdCard(idCard);
		entity.setStatus(status);
		return entity;
	}
}